package com.bookstore.service;

import com.bookstore.entity.BookCar;
import com.bookstore.entity.PageBean;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author :Cofe
 * @Date 2022/4/21 21:43
 */
@Service
public interface BookCarService {
    //添加图书到购物车
    void addBookCar(int id, String book_name, double book_balance,int user_uid,String book_pic,double book_membalance);
    //查看当前用户购物车信息
    List<BookCar> findcarbyid(int user_uid);
    //付款清空购物车
    void deleteAll(int user_uid);
    //删除购物车某个信息
    boolean deleteByBuyId(int buy_id);
    //查看当前图书信息
    BookCar findBybuy_id(int buy_Id);
    //分页查询
    PageBean<BookCar> selectByPage(int currentPage, int pageSize,int user_uid);
    //分页查询条件
    PageBean<BookCar> selectByPageAndCondition(int currentPage, int pageSize, BookCar bookCar);
}
